(if Man-sed-script
(concat "-e '" Man-sed-script "'")
"")
- ;; Use octal numbers. Otherwise, \032 (Ctrl-Z) would
- ;; suspend remote connections.
- "-e '/^[\\o001-\\o032][\\o001-\\o032]*$/d'"
+ (if (eq system-type 'darwin)
+ ;; macOS Sed doesn't support \o notation.
+ "-e '/^[[:cntrl:]][[:cntrl:]]*$/d'"
+ ;; Use octal numbers. Otherwise, \032 (Ctrl-Z) would
+ ;; suspend remote connections.
+ "-e '/^[\\o001-\\o032][\\o001-\\o032]*$/d'")
"-e '/\e[789]/s///g'"
"-e '/Reformatting page. Wait/d'"
"-e '/Reformatting entry. Wait/d'"